package routers

import (
	"github.com/astaxie/beego"
	"shop/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/add", &controllers.ShopController{}, "post:Add")
	beego.Router("/upload", &controllers.ShopController{}, "post:Upload")
	beego.Router("/login", &controllers.UserController{}, "post:Login")
	beego.Router("/list", &controllers.ShopController{}, "get:List")
	beego.Router("/info", &controllers.ShopController{}, "get:Info")
	beego.Router("/rank", &controllers.ShopController{}, "get:Rank")
	beego.Router("/delete", &controllers.ShopController{}, "get:Delete")
	beego.Router("/update", &controllers.ShopController{}, "post:Update")
}
